package cz.proks.easyhelpdesk.api.model;

import java.util.Date;

import cz.proks.easyhelpdesk.api.model.base.AnIdentifiableModel;


public class Ticket extends AnIdentifiableModel {  
    private Long ownerId;    
    private Date created;
    private Long threadId;
    private String subject;
    private String description;  
    private Long categoryId;
    
    public Long getOwnerId() {
        return ownerId;
    }
    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }    
    public Long getThreadId() {
        return threadId;
    }
    public void setThreadId(Long threadId) {
        this.threadId = threadId;
    }
    public String getSubject() {
        return subject;
    }
    public void setSubject(String subject) {
        this.subject = subject;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }        
    public Long getCategoryId() {
        return categoryId;
    }
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }
    public Date getCreated() {
        return created;
    }
    public void setCreated(Date created) {
        this.created = created;
    }   
    
    @Override
    public String toString() {
        return "[id=" + getId() + ",  ownerId=" + ownerId + ", created=" + created + ", threadId=" + threadId + ", subject=" + subject + ", description=" + description
                + ", categoryId=" + categoryId + "]";
    }
               
}
